sh4 support
authorJohn Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Sat, 24 Jan 2026 09:06:00 +0000 (10:06 +0100)
committerBastian Germann <bage@debian.org>
Sat, 24 Jan 2026 09:06:00 +0000 (10:06 +0100)
commit584db8335f7a970960ad011b82dee36f39a7b6d3
tree59ed1b01f7b453ad37a67be88393ee09c6dd1526
parent653297c4a4997560d1f914860b180b2426f5f87f
sh4 support

Forwarded: not yet.
Bug-Debian: https://bugs.debian.org/1027168

onetbb currently FTBFS on sh4 because the source code assumes that the target
FPU supports all four rounding modes (FE_TONEAREST, FE_DOWNWARD, FE_UPWARD and
FE_TOWARDZERO) which is not the case on sh4 which supports FE_TONEAREST and
FE_TOWARDZERO only [1].

The attached patch fixes these assumptions for sh4 and makes the code build. I
have already patched and uploaded the package to the unreleased distribution
so that the mold linker can build on sh4 as well.

I will forward the patch later after reformating it.

Gbp-Pq: Name sh4-support.patch
test/common/fp_control.h